﻿<template>
  <el-table :data="tableData" border stripe style="width: 100%">
    <el-table-column prop="date" label="日期" sortable width="150"> </el-table-column>
    <el-table-column label="配送信息">
      <el-table-column prop="name" label="姓名" width="120"> </el-table-column>
      <el-table-column label="地址">
        <el-table-column prop="province" label="省份" width="120">
        </el-table-column>
        <el-table-column prop="city" label="市区" width="120">
        </el-table-column>
        <el-table-column prop="address" label="地址"> </el-table-column>
        <el-table-column prop="zip" label="邮编" width="120"> </el-table-column>
      </el-table-column>
    </el-table-column>
  </el-table>
</template>
<script>
  export default {
    data() {
      return {
        tableData: [
          { 
            date: '2023-05-03',
            name: '刘晓明',
            province: '上海',
            city: '普陀区',
            address: '上海市普陀区金沙江路 1518 号',
            zip: 200333,
          },
          {
            date: '2023-05-02',
            name: '王大风',
            province: '北京',
            city: '海淀区',
            address: '北京市海淀区江上路 1008号',
            zip: 100080,
          },
          {
            date: '2023-05-04',
            name: '张三丰',
            province: '上海',
            city: '普陀区',
            address: '上海市普陀区金沙江路 1518 号',
            zip: 200333,
          },
          {
            date: '2023-05-01',
            name: '李晓晓',
            province: '北京',
            city: '海淀区',
            address: '北京市海淀区江上路 1008号',
            zip: 100080,
          },
          {
            date: '2023-05-08',
            name: '秦明月',
            province: '上海',
            city: '普陀区',
            address: '上海市普陀区金沙江路 1518 号',
            zip: 200333,
          },
          {
            date: '2023-05-06',
            name: '王小龙',
            province: '上海',
            city: '普陀区',
            address: '上海市普陀区金沙江路 1518 号',
            zip: 200333,
          },
        ],
      }
    },
    methods: {
      formatter(row, column) {
        return row.address
      },
    },
  }
</script>
